<template>
  <div id="app">
    <!-- <keep-alive> -->
      <router-view />
    <!-- </keep-alive> -->
  </div>
</template>

<script>

export default {
  name: 'App',
  watch: {
    $route(to, from) {
      
        if(from.name=='Login'&&to.name=='Apply'){
          this.needDeal()
          this.settimes=setInterval(()=>{
             this.needDeal()
          },30000)
        }
        if(to.name=='Login'){clearInterval(this.settimes)}
    }
  },
  created(){
    if(this.$route.name=='Login'){
      clearInterval(this.settimes)
    }
    if(this.$route.name=='Login'||this.$route.name=='staticIndex'
    ||this.$route.name=='verifyApplyedNotice'||this.$route.name=='verifyApplyNotice'
    ||this.$route.name=='SelectArbitrator'||this.$route.name=='bankInsertIndex'){
      
    }else{
        this.needDeal()
    }
    if(this.$route.name=='staticIndex'){
        this.$store.commit('isShow', false)
    }
    
  }
}
</script>

<style>
  html,body{
    height: 100%;
  }
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* text-align: center; */
    /* color: #2c3e50; */
    height: 100%;
    width: 1920px;
    background: #f5f5f5;
    /* color: #617991; */
    /* margin-top: 60px; */

  }
</style>
